<h1>Seguidores de <%= @usuario.username %></h1>
<div class="portlet box red">
	<div class="portlet-title">
		<div class="caption"><i class="icon-cogs"></i>Seguidores</div>
		<div class="tools">
			<a href="javascript:;" class="collapse"></a>
			<a href="javascript:;" class="reload"></a>
		</div>
	</div>
	<div class="portlet-body">
		<table class="table table-hover">
			<tbody>
				<% @seguidores.each do |seguidor| %>
				<tr>
					<td><%= link_to '/muro/'+seguidor.username do %><%= seguidor.username %><% end %></td>
					<% if current_user.seguidos.map(&:id).include?(seguidor.id) %>
					  <td><%= link_to 'Dejar de Seguir', "/"+seguidor.username+"/dejarSeguir", method: :get %></td>
					<% else %>
					  <td><%= link_to 'Seguir', "/"+seguidor.username+"/seguir", method: :get %></td>
					<% end %>
				</tr>
				<% end %>
			</tbody>
		</table>
	</div>
</div>

<% content_for :scripts do %>
	<!-- BEGIN PAGE LEVEL PLUGINS -->

	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL SCRIPTS -->
	<script src="/assets/scripts/core/metronic.js" type="text/javascript"></script>
	<script src="/assets/scripts/core/layout.js" type="text/javascript"></script>
	<script>
	  jQuery(document).ready(function() {
	    Metronic.init(); // init metronic core components
	 		Layout.init(); // init current layout
	  });
	</script>
	<!-- END PAGE JAVASCRIPTS -->
<% end %>




